// import {createStore, applyMiddleware, combineReducers} from 'redux';
// import thunkMiddleware from 'redux-thunk';
//
// import promiseMiddleware from '../middlewares/promiseMiddleware'
//
// import user from '../reducers/user';
// import menu from '../reducers/menu';
//
// const reducer = combineReducers({user, menu});
//
// const createStoreWithMiddleware = applyMiddleware(
//   thunkMiddleware,
//   promiseMiddleware({promiseTypeSuffixes: ['PENDING', 'SUCCESS', 'ERROR']})
// )(createStore);
//
// export default function configureStore(initialState) {
//   return createStoreWithMiddleware(reducer, initialState);
// }
if (process.env.NODE_ENV === 'production') {
  module.exports = require('./configureStore.prod');
} else {
  module.exports = require('./configureStore.dev');
}